package com.pgybook.db.entity.domain;

import java.util.ArrayList;
import java.util.List;

public class PurchaseBookPictureEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PurchaseBookPictureEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPurchasebookpictureidIsNull() {
            addCriterion("PURCHASEBOOKPICTUREID is null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidIsNotNull() {
            addCriterion("PURCHASEBOOKPICTUREID is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidEqualTo(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID =", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidNotEqualTo(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID <>", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidGreaterThan(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID >", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidGreaterThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID >=", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidLessThan(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID <", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidLessThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKPICTUREID <=", value, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidIn(List<Long> values) {
            addCriterion("PURCHASEBOOKPICTUREID in", values, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidNotIn(List<Long> values) {
            addCriterion("PURCHASEBOOKPICTUREID not in", values, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKPICTUREID between", value1, value2, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookpictureidNotBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKPICTUREID not between", value1, value2, "purchasebookpictureid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIsNull() {
            addCriterion("PURCHASEBOOKID is null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIsNotNull() {
            addCriterion("PURCHASEBOOKID is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID =", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <>", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThan(Long value) {
            addCriterion("PURCHASEBOOKID >", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID >=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThan(Long value) {
            addCriterion("PURCHASEBOOKID <", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID not in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID not between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andIsmainpicIsNull() {
            addCriterion("ISMAINPIC is null");
            return (Criteria) this;
        }

        public Criteria andIsmainpicIsNotNull() {
            addCriterion("ISMAINPIC is not null");
            return (Criteria) this;
        }

        public Criteria andIsmainpicEqualTo(Integer value) {
            addCriterion("ISMAINPIC =", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicNotEqualTo(Integer value) {
            addCriterion("ISMAINPIC <>", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicGreaterThan(Integer value) {
            addCriterion("ISMAINPIC >", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicGreaterThanOrEqualTo(Integer value) {
            addCriterion("ISMAINPIC >=", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicLessThan(Integer value) {
            addCriterion("ISMAINPIC <", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicLessThanOrEqualTo(Integer value) {
            addCriterion("ISMAINPIC <=", value, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicIn(List<Integer> values) {
            addCriterion("ISMAINPIC in", values, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicNotIn(List<Integer> values) {
            addCriterion("ISMAINPIC not in", values, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicBetween(Integer value1, Integer value2) {
            addCriterion("ISMAINPIC between", value1, value2, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andIsmainpicNotBetween(Integer value1, Integer value2) {
            addCriterion("ISMAINPIC not between", value1, value2, "ismainpic");
            return (Criteria) this;
        }

        public Criteria andDisplayseqIsNull() {
            addCriterion("DISPLAYSEQ is null");
            return (Criteria) this;
        }

        public Criteria andDisplayseqIsNotNull() {
            addCriterion("DISPLAYSEQ is not null");
            return (Criteria) this;
        }

        public Criteria andDisplayseqEqualTo(Integer value) {
            addCriterion("DISPLAYSEQ =", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqNotEqualTo(Integer value) {
            addCriterion("DISPLAYSEQ <>", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqGreaterThan(Integer value) {
            addCriterion("DISPLAYSEQ >", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqGreaterThanOrEqualTo(Integer value) {
            addCriterion("DISPLAYSEQ >=", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqLessThan(Integer value) {
            addCriterion("DISPLAYSEQ <", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqLessThanOrEqualTo(Integer value) {
            addCriterion("DISPLAYSEQ <=", value, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqIn(List<Integer> values) {
            addCriterion("DISPLAYSEQ in", values, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqNotIn(List<Integer> values) {
            addCriterion("DISPLAYSEQ not in", values, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqBetween(Integer value1, Integer value2) {
            addCriterion("DISPLAYSEQ between", value1, value2, "displayseq");
            return (Criteria) this;
        }

        public Criteria andDisplayseqNotBetween(Integer value1, Integer value2) {
            addCriterion("DISPLAYSEQ not between", value1, value2, "displayseq");
            return (Criteria) this;
        }

        public Criteria andFormatIsNull() {
            addCriterion("FORMAT is null");
            return (Criteria) this;
        }

        public Criteria andFormatIsNotNull() {
            addCriterion("FORMAT is not null");
            return (Criteria) this;
        }

        public Criteria andFormatEqualTo(String value) {
            addCriterion("FORMAT =", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotEqualTo(String value) {
            addCriterion("FORMAT <>", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatGreaterThan(String value) {
            addCriterion("FORMAT >", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatGreaterThanOrEqualTo(String value) {
            addCriterion("FORMAT >=", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLessThan(String value) {
            addCriterion("FORMAT <", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLessThanOrEqualTo(String value) {
            addCriterion("FORMAT <=", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLike(String value) {
            addCriterion("FORMAT like", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotLike(String value) {
            addCriterion("FORMAT not like", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatIn(List<String> values) {
            addCriterion("FORMAT in", values, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotIn(List<String> values) {
            addCriterion("FORMAT not in", values, "format");
            return (Criteria) this;
        }

        public Criteria andFormatBetween(String value1, String value2) {
            addCriterion("FORMAT between", value1, value2, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotBetween(String value1, String value2) {
            addCriterion("FORMAT not between", value1, value2, "format");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andFilesizeIsNull() {
            addCriterion("FILESIZE is null");
            return (Criteria) this;
        }

        public Criteria andFilesizeIsNotNull() {
            addCriterion("FILESIZE is not null");
            return (Criteria) this;
        }

        public Criteria andFilesizeEqualTo(Integer value) {
            addCriterion("FILESIZE =", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeNotEqualTo(Integer value) {
            addCriterion("FILESIZE <>", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeGreaterThan(Integer value) {
            addCriterion("FILESIZE >", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("FILESIZE >=", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeLessThan(Integer value) {
            addCriterion("FILESIZE <", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeLessThanOrEqualTo(Integer value) {
            addCriterion("FILESIZE <=", value, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeIn(List<Integer> values) {
            addCriterion("FILESIZE in", values, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeNotIn(List<Integer> values) {
            addCriterion("FILESIZE not in", values, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeBetween(Integer value1, Integer value2) {
            addCriterion("FILESIZE between", value1, value2, "filesize");
            return (Criteria) this;
        }

        public Criteria andFilesizeNotBetween(Integer value1, Integer value2) {
            addCriterion("FILESIZE not between", value1, value2, "filesize");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}